class BaseComicsChapterData {
    BaseDataComicsChapterData data;
    int code;
    String msg;

    BaseComicsChapterData({this.data, this.code, this.msg});

    factory BaseComicsChapterData.fromJson(Map<String, dynamic> json) {
        return BaseComicsChapterData(
            data: json['data'] != null ? BaseDataComicsChapterData.fromJson(json['data']) : null,
            code: json['code'],
            msg: json['msg'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['code'] = this.code;
        data['msg'] = this.msg;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}

class BaseDataComicsChapterData {
    List<ComicsChapterData> data;
    int count;

    BaseDataComicsChapterData({this.data, this.count});

    factory BaseDataComicsChapterData.fromJson(Map<String, dynamic> json) {
        return BaseDataComicsChapterData(
            data: json['data'] != null ? (json['data'] as List).map((i) => ComicsChapterData.fromJson(i)).toList() : null,
            count: json['count'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['count'] = this.count;
        if (this.data != null) {
            data['data'] = this.data.map((v) => v.toJson()).toList();
        }
        return data;
    }
}

class ComicsChapterData {
    String cartoonId;
    int cartoonVariableId;
    String chapterId;
    String creationTime;
    int id;
    String title;

    ComicsChapterData({this.cartoonId, this.cartoonVariableId, this.chapterId, this.creationTime, this.id, this.title});

    factory ComicsChapterData.fromJson(Map<String, dynamic> json) {
        return ComicsChapterData(
            cartoonId: json['cartoonId'],
            cartoonVariableId: json['cartoonVariableId'],
            chapterId: json['chapterId'],
            creationTime: json['creationTime'],
            id: json['id'],
            title: json['title'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['cartoonId'] = this.cartoonId;
        data['cartoonVariableId'] = this.cartoonVariableId;
        data['chapterId'] = this.chapterId;
        data['creationTime'] = this.creationTime;
        data['id'] = this.id;
        data['title'] = this.title;
        return data;
    }
}